//
//  test.c
//  stdcrt_test
//
//  Created by com on 2024/6/16.
//

#include <stdio.h>
#include "test.h"

void* loop_mem_alloc(evloop_t* loop, size_t count, size_t size)
{
    void* p = heap_calloc(count, size);
    return p;
}
int loop_mem_free(evloop_t* loop, void* ptr)
{
    heap_free(ptr);
    return 0;
}
void* loop_alloc(void* ctx, size_t size)
{
    void* p = heap_calloc(1, size);
    return p;
}
int loop_free(void* ctx, void* ptr)
{
    heap_free(ptr);
    return 0;
}
void* oper_alloc(void* ctx, size_t size)
{
    void* p = heap_calloc(1, size);
    return p;
}
int oper_free(void* ctx, void* ptr)
{
    heap_free(ptr);
    return 0;
}
